package com.spc.car.data.service.project;

import com.baomidou.mybatisplus.extension.service.IService;
import com.spc.car.data.domain.project.po.SaveTenderSectionPO;
import com.spc.car.data.entity.project.ProjectTenderingSection;

import java.util.List;

/**
 * <p>
 * 标段(包)表 服务类
 * </p>
 *
 * @author 
 * @since 2020-04-03
 */
public interface ProjectTenderingSectionService extends IService<ProjectTenderingSection> {

    /**
     * 保存或修改招标标段
     * @param saveTenderSectionPO
     * @return
     */
    int saveOrUpdateTenderSection(List<SaveTenderSectionPO> saveTenderSectionPO);

    /**
     * 自动生成标段编码
     * @return
     */
    String generateBlockNumber();

    /**
     * 通过Id停用标段
     * @param sectionId
     * @return
     */
    int disableBidById(Long sectionId);

    /**
     * 通过ID或标段标号查询标段信息
     * @param sectionId
     * @param sectionCode
     * @return
     */
    ProjectTenderingSection getTenderSectionInfo(Long sectionId,String sectionCode);

    /**
     * 按招标项目编号取标段
     * @param projectTenderingCode
     * @return
     */
    List<ProjectTenderingSection> listByTenderingCode(String projectTenderingCode);
}
